const gulp = require('gulp');
const less = require('gulp-less');
const plumber = require('gulp-plumber');

const paths = {
  less: './app/less/*.less',
}

const buildLess = () => {
  gulp.src(paths.less)
    .pipe(plumber())
    .pipe(less())
    .pipe(gulp.dest('./app/css'));
};

gulp.task('watch', function() {
	gulp.watch(paths.less, () => {
    buildLess();
  });
});